home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ WinNT CrashControl.xpl < prev    next >
Text File  |  1998-12-09  |  2KB  |  69 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Misc"
  5. "NAME"="Crash Control"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Automatically Reboot after crash (Blue Screen)"
  8. "TEXT 2"="Write Dump to MEMORY.LOG"
  9. "TEXT 3"="Automatically restart Explorer after crash"
  10. "DESCRIPTION 1"="Several options what Windows NT should do if it crashes (STOP Error)."
  11. "DESCRIPTION 2"="More options can be configured using "Control Panel" -> "System" -> "Startup/Shutdown"."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  15. "COMMENT 2"="Version 1.1"
  16.  
  17.  
  18. sPath="HKLM\System\CurrentControlSet\Control\CrashControl\"
  19. sDump="CrashDumpEnabled"
  20. sAR="AutoReboot"
  21.  
  22. sRest="HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoRestartShell" 'REG_DWORD
  23.  
  24. Sub Plugin_Initialize 
  25.  if RegPathExists(sPath)=false then
  26.   Disable
  27.  else
  28.   i=RegReadValue(sPath & sAR)
  29.   if i=1 then Call SetUIElement(1,True)
  30.  
  31.   i=RegReadValue(sPath & sDump)
  32.   if i=1 then Call SetUIElement(2,True)
  33.  
  34.   i=RegReadValue(sRest)
  35.   if i=1 then Call SetUIElement(3,True)
  36.  end if
  37. End Sub
  38.  
  39. Sub Plugin_CheckData(ElementIndex)
  40. End Sub
  41.  
  42. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  b=GetUIElement(1)
  44.  if b=true then
  45.   Call RegWriteValue(sPath & sAR,1,2)
  46.  else
  47.   Call RegWriteValue(sPath & sAR,0,2)
  48.  end if
  49.  
  50.  b=GetUIElement(2)
  51.  if b=true then
  52.   Call RegWriteValue(sPath & sDump,1,2)
  53.  else
  54.   Call RegWriteValue(sPath & sDump,0,2)
  55.  end if
  56.  
  57.  b=GetUIElement(3)
  58.  if b=true then
  59.   Call RegWriteValue(sRest,1,2)
  60.  else
  61.   Call RegWriteValue(sRest,0,2)
  62.  end if
  63.  
  64.  Call Restart
  65. End Sub
  66.  
  67. Sub Plugin_Terminate 
  68. End Sub
  69.